package cn.iocoder.yudao.module.wms.controller.admin.stockserial.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 库存序列号 Response VO")
@Data
@ExcelIgnoreUnannotated
public class StockSerialRespVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6063")
    @ExcelProperty("序号")
    private Long id;

    @Schema(description = "产品", requiredMode = Schema.RequiredMode.REQUIRED, example = "19131")
    @ExcelProperty("产品")
    private Long productId;

    @Schema(description = "仓库", requiredMode = Schema.RequiredMode.REQUIRED, example = "22059")
    @ExcelProperty("仓库")
    private Long warehouseId;

    @Schema(description = "库位", example = "20299")
    @ExcelProperty("库位")
    private Long positionId;

    @Schema(description = "序列号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("序列号")
    private String serialNo;

    @Schema(description = "入库单据性质", example = "16281")
    @ExcelProperty("入库单据性质")
    private Long inDocId;

    @Schema(description = "入库单号")
    @ExcelProperty("入库单号")
    private String inDocCode;

    @Schema(description = "出库单据性质", example = "1866")
    @ExcelProperty("出库单据性质")
    private Long outDocId;

    @Schema(description = "出库单号")
    @ExcelProperty("出库单号")
    private String outDocCode;

    @Schema(description = "入库标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "入库标识", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer inFlag;

    @Schema(description = "出库标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "出库标识", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer outFlag;

    @Schema(description = "库存明细表关联", requiredMode = Schema.RequiredMode.REQUIRED, example = "29045")
    @ExcelProperty("库存明细表关联")
    private Long stockDetailId;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}